<?php

function smarty_function_check_ie($params, &$smarty) {
  ereg('MSIE ([0-8]\.[0-8])',$_SERVER['HTTP_USER_AGENT'],$reg);
  if(!isset($reg[1])) {
    return false;
  } else {
    return true;
  }
}
